﻿using System;
using System.Text;
using System.Net;
using System.IO;
using System.Security;
using System.Threading.Tasks;
using Microsoft.Build.Evaluation;

namespace System.Build.Extensions
{
    /// <summary>
    /// The definition of the Build class. With methods
    /// </summary>
    public class Build
    {
        #region construtor
        /// <summary>
        /// The Build class constructor, creates a new instance of the Build class.
        /// </summary>
        public Build()
        {
        }
        #endregion

        #region Methods
        /// <summary>
        /// Method that Builds the project given a string.
        /// </summary>
        /// <param name="filename"></param>
        public void BuildProject(string filename)
        {
            Project engine = new Project();
            BasicFileLogger logger = new BasicFileLogger();
            engine.Build(filename);
            //engine.BinPath = @"c:\windows\microsoft.net\framework\v3.5";
            //engine.RegisterLogger(logger);
            
            //engine.UnregisterAllLoggers();

        }
        /// <summary>
        /// Method that builds the project then outputs the log as HTML.
        /// </summary>
        /// <param name="filename"></param>
        public void LogToHtml(string filename)
        { 
           
        }
        #endregion
    }

}
